package com.ruoyi.teaching.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author 15332
 * @version 1.0
 * @date 2025/9/12 17:22
 * @description RabbitMQ 配置类
 */
@Component
public class RabbitMQConfig {
    @Bean
    public MessageConverter jsonMessageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
